﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace ComHlp.ContentClasses.VirtualControls.NetPlan
{
    /// <summary> intex net plan/gantt f.x.  
    /// class holding the main definition (the orders are logical childs)</summary>
    [SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
    public class ItxNetPlan
    {
        /// <summary> 9(01)	fix „1“  </summary>
        public int No { get; set; }

        /// <summary> 9(02) bezogen auf diese Auswahl (not used) </summary>
        public int YMax { get; set; }

        /// <summary> 9(02) lfd-Seite oben/unten </summary>
        public int YNo { get; set; }

        /// <summary> 9(02) bezogen auf diese Auswahl (not used) </summary>
        public int XMax { get; set; }

        /// <summary> 9(02) lfd-Seite links/rechts (not used) </summary>
        public int XNo { get; set; }

        /// <summary> 9(08) JJJJMMTT Gesamtstart-Datum </summary>
        public DateTime AllStartDate { get; set; }

        /// <summary> 9(08) JJJJMMTT </summary>
        public DateTime EndDate { get; set; }

        /// <summary> 9(03) Tage der Anzeige </summary>
        public int DayCount { get; set; }

        /// <summary> 9(03) Anzahl Aufträge im Bild </summary>
        public int OrdersCount { get; set; }

        /// <summary> 9(02) Index des selektierten Auftrags		nicht 3??? </summary>
        public int IndexOfSelectedOrder { get; set; }

        /// <summary> orders </summary>
        public List<ItxNetPlanOrder> Orders { get; } = new List<ItxNetPlanOrder>();
    }
}
